const store = require("../store")
const { changeNameAction, changeAgeAction } = require("../store/actionCreators")
// 订阅state的变化
store.subscribe(() => {
  console.log(store.getState(), "use1 use")
})

store.dispatch(changeNameAction("James"))
store.dispatch(changeAgeAction(-1))
